This extension method could also return a sequence of IMember. The choice of ICodeContainer is arbitrary and Cast can still be used on returned sequence.
Requirements
Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed